cc.Class({
    extends: cc.Component,

    properties: {
        audBg: {
            default: null,
            type: cc.AudioClip
        },
        audMerge: {
            default: null,
            type: cc.AudioClip
        },
        audBtn: {
            default: null,
            type: cc.AudioClip
        },
    },

    onLoad(){
        G.game.gameAudioMgr = this;
    },

    playBgm() {
        G.audio.playBgm(this.audBg);
    },
    stopBgm() {
        G.audio.stopBgm();
    },

    playMerge(){
        G.audio.playEffect(this.audMerge);
    },
    playBtn(){
        G.audio.playEffect(this.audBtn);
    },
})